package com.zxl.grocery.schedule.dao;


import com.zxl.grocery.schedule.common.persistence.model.ScheduleJobEntity;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 定时任务Dao
 *
 * @author zxl
 * @Date 2017-08-23 14:20:31
 */
public interface ScheduleJobMgrDao {
    /**
     * 批量更新状态
     */
    int updateBatch(Map<String, Object> map);

    List<ScheduleJobEntity> queryList(Map<String, Object> map);

    ScheduleJobEntity queryObject(Long jobId);

    int queryTotal(Map<String, Object> map);

    void save(ScheduleJobEntity scheduleJob);

    void update(ScheduleJobEntity scheduleJob);

    void deleteBatch(Long[] jobIds);

    List<Map<String,Object>> getAllScheduleJobList();
}
